package com.example.crm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.crm.entity.Product;
import com.example.crm.entity.Shop;
import com.example.crm.mapper.ProductMapper;
import com.example.crm.service.ProductService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {
    @Resource
    private ProductMapper productMapper;
    @Override
    public List<Product> selectProductWithShopName() {
        return productMapper.selectProductWithShopName();
    }
}
